home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18322 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

  1. Path: ix.netcom.com!news
  2. From: Bradd W. Szonye <bradds@ix.netcom.com>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: RE: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 19 Apr 1996 09:12:43 GMT
  6. Organization: Netcom
  7. Message-ID: <01bb2dd0.a8395e00$c6c2b7c7@Zany.localhost>
  8. References: <JSA.96Feb16135027@organon.com> <DppsHq.1Ar@world.std.com> <829279436snz@tsys.demon.co.uk> <dewar.829346082@schonberg> <4knr5l$gb1@nntp.Stanford.EDU> <dewar.829400155@schonberg>
  9. NNTP-Posting-Host: det-mi6-06.ix.netcom.com
  10. X-NETCOM-Date: Fri Apr 19  4:12:43 AM CDT 1996
  11. X-Newsreader: Microsoft Internet News
  12.  
  13.  
  14. On Saturday, April 13, 1996, Robert Dewar wrote...
  15. > "If the project managers want to use software standards to help
  16. > ensure portability, there's no barrier I'm aware of that keeps
  17. > them from using standard semantics for the system-independent
  18. > parts of their projects.  In many cases this greatly reduces
  19. > porting effort for most of the source."
  20. > I completely agree with Chuck Karish on this. Clear specifications from
  21. > appropriate software standards, which are well understaood and carefully
  22. > followed by all programmers, without reference to "unwritten rules"
  23. > and "sensible reasoning", are a huge help in making programs easily
  24. > portable. If anyone can remember back far enough :-) this is the point
  25. > that I was originally making with respect to the read function!
  26. > Note however that this is not sufficient to guarantee portability. For
  27. > simple programs that can be made 100% portable, then indeed carefully
  28. > following standards is a key. In this regard, I far prefer national
  29. > and international standards to industry standards, since the former
  30. > have typically gone through a much more intensive review, and are
  31. > more stable (I preer that ISO owns a standard and is the only one
  32. > who can change it, than that the standard be owned by the "current
  33. > holder of the copyright", whose interests are fundamentally commercial
  34. > ones which may even be at odds with the basic goals of standardization).
  35. > However, many large programs have sections that cannot be written
  36. > in a portable manner, and here the issue is very careful isolation
  37. > and documentation of these sections of code.
  38. > In my experience many portability problems are caused by programmers
  39. > not understanding the relevant standards well. How many C++ programmers
  40. > have read the proposed draft standard. FOr that matter how many C
  41. > programmers have read the ANSI standard for C. One problem is that
  42. > these standards are often remarkably inaccessible, and/or expensive.
  43. > It certainly would be nice if other languages and systems could follow
  44. > the lead of Ada, and make their standards freely available over the net.
  45. > The POSIX standard has, at least in the past, been problematical from
  46. > this point of view.
  47.  
  48. The standards are a lot more accessible now with the increased popularity
  49. of the Internet. I've read both standards, and the bigger problem is the
  50. inaccessible legalese of the standards themselves, which are written for
  51. compiler vendors, *not* programmers.
  52.  
  53. Pick up Schildt's "Annoted ANSI C Standard" and Plauger/Brodie's "Standard
  54. C: A Reference". Between the two they cover the original standard and
  55. Amendment 1 fairly well.
  56.  
  57. You can get the April 1995 C++ papers from AT&T's Web site in PostScript
  58. format, and from several other sites in HTML. Other sites typically have
  59. the (confidential) September 1995 papers. You can find them fairly easily
  60. with Infoseek: [C++ standard] ANSI ISO
  61.  
  62. Bradd
  63.  
  64.  
  65.